import { stringify } from 'qs';
import {request} from '../utils/request';
import { getConfig } from '../../config';
const config = getConfig();


// 知识文档列表--------------------------------------------------------------------
export async function queryRepositoryList(params) {
  return request('/repository/repositoryinfo/list', {
    method: 'POST',
    body: params,
  });
}

// 添加知识文档
export async function actionRepositoryAdd(params) {
  return request('/repository/repositoryinfo/save', {
    method: 'POST',
    body: params,
  });
}

// 导出
export async function actionRepositoryrExport(params) {
  return request(
    "08010003",
    {
      method: "POST",
      body: params
    },
    null,
    null,
    "download"
  );
}

// 删除
export async function actionRepositoryDel(params) {
  return request('/repository/repositoryinfo/delete', {
    method: 'POST',
    body: params,
  });
}


// 移动
export async function actionRepositoryMove(params) {
  return request('/repository/repositoryinfo/move', {
    method: 'POST',
    body: params,
  });
}


